package cc.iotkit.data.service;

import cc.iotkit.common.satoken.utils.LoginHelper;
import cc.iotkit.common.utils.MapstructUtils;
import cc.iotkit.data.dao.AlertFenceRepository;
import cc.iotkit.data.dao.BasAreaRepository;
import cc.iotkit.data.dao.IJPACommData;
import cc.iotkit.data.manager.IAlertFenceData;
import cc.iotkit.data.model.TbAlertFence;
import cc.iotkit.data.model.TbDeviceParts;
import cc.iotkit.model.alert.AlertFence;
import cc.iotkit.model.device.DeviceParts;
import com.querydsl.jpa.impl.JPAQueryFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import java.util.Date;

@Primary
@Service
public class AlertFenceDataImpl implements IAlertFenceData, IJPACommData<AlertFence, Long> {
    @Autowired
    private JPAQueryFactory jpaQueryFactory;
    @Autowired
    private AlertFenceRepository repository;

    @Override
    public JpaRepository getBaseRepository() {
        return repository;
    }

    @Override
    public Class getJpaRepositoryClass() {
        return TbAlertFence.class;
    }

    @Override
    public Class getTClass() {
        return AlertFence.class;
    }


}
